package com.wd.jetpack.demo.paging.model;

import androidx.lifecycle.MutableLiveData;
import androidx.paging.DataSource;

/**
 * NA<BR>
 *
 * @author W4255
 * @version [V0.0.1, 2021/6/30]
 * @Description: NA
 */
public class MovieDataSourceFactory extends DataSource.Factory<Integer, Movie> {
    private MutableLiveData<MovieDataSource> mSourceLiveData =
            new MutableLiveData<>();

    @Override
    public DataSource<Integer, Movie> create() {
        MovieDataSource movieDataSource = new MovieDataSource();
        mSourceLiveData.postValue(movieDataSource);
        return movieDataSource;
    }
}
